package com.bdqn.mapper;

import java.time.LocalDateTime;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bdqn.entity.PsInspectiontaskDetail;
import com.bdqn.entity.PsUser;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author dede
 * @since 2020-05-23
 */
public interface PsInspectiontaskDetailMapper extends BaseMapper<PsInspectiontaskDetail> {

	List<PsInspectiontaskDetail> fetchBugInfo();

	PsInspectiontaskDetail fetchBugInfoById(Integer id);

	void confirm(Long id, Long bugLevelId);

	PsInspectiontaskDetail selectInsDetailByMainId(Integer id);

	List<PsInspectiontaskDetail> selectRequest();

	PsInspectiontaskDetail selectDetailById(@Param("ew")QueryWrapper<PsUser> qw);

	boolean add(@Param("taskid")Integer taskid, @Param("l")long l, 
			@Param("poleid")Long poleid, @Param("i")int i,
			@Param("intactRate")Double intactRate, @Param("m")long m,
			@Param("n")long n, @Param("bugdesc")String bugdesc,
			@Param("usercode")String usercode, @Param("username")String username,
			@Param("j")int j, @Param("k")int k, 
			@Param("string")String string, @Param("ltime")LocalDateTime ltime, 
			@Param("ltime2")LocalDateTime ltime2,
			@Param("ltime3")LocalDateTime ltime3, @Param("discovertime")LocalDateTime discovertime);
}
